﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Mt.Site.Core.Base.Domain.Entities;
using Mt.Site.Core.ContentManagement.Entities;
using Mt.Site.Core.Navigations.Entities;
using System;
using System.ComponentModel.DataAnnotations;

/****************************************************************
*   创建时间：2020/2/17 9:47:22
*   2020
*   描述说明：日志管理类
*
*   修改历史：
*****************************************************************/
namespace Mt.Site.Core.DataLogs
{
    public class DataLog : CreationAuditedEntity<Guid>, IMustHaveTenant, ILanguage
    {
        /// <summary>
        /// 数据所属栏目
        /// </summary>
        [StringLength(Menu.MaxDisplayNameLength)]
        public string DataMenuName { get; set; }
        public long MenuId { get; set; }

        /// <summary>
        /// 数据ID
        /// </summary>
        public Guid DataId { get; set; }

        public long DataAuxiliaryId { get; set; }

        /// <summary>
        /// 数据标题
        /// </summary>
        [StringLength(Content.MaxTitleLength)]
        public string DataTitle { get; set; }

        public DataLogOptionType OptionType { get; set; }

        /// <summary>
        /// 租户ID
        /// </summary>
        public int TenantId { get; set; }

        /// <summary>
        /// 语言版本
        /// </summary>
        [StringLength(50)]
        public string Language { get; set; }

        [MaxLength(100)]
        public string EntityTypeName { get; set; }
    }
}
